fix swipe issue