fixed swipe bug