fix swipe logic