fixed bug in migrations