bug fixed in migrations for database