fixed some problem about migration files