swipe bug fix