yotam: fix bug in migrations