fixed migrations errors