Fixed swipe bug