Swipe left and right bug fix