fix migration file issues