Fixed the migration dependency problem