Fixed swipe script