Correcting migrations