fixed references in migrations