fix migration dependency problem