fix swipe reverse swipe problem