Swipe gesture fix