fix migrations error