Fixed swipe gesture bug