bug fix on swipe