Fixed a bug caused by fast flipping.