Removes bad migrations