bug fix in migrations