Fix swipe bug