fixed swipe navigation bug