fix bug, swipe fired multiple times