Fixed a bug when preview bouncing top or bottom viewcontroller