migrations fix errors