fixed all the bad flips