fixed swipe and click bug