Fixes errors in migration file