fixing auto migrations error