fixed critical bug with wrong migrations