fixed swipe bugs