Corrects the migrations