fixes swipe bug