Fix vertical swipe bug