fixed errors in migrations