Fixed flip overshooting 180 degrees.