Fix swipe a bug