fixing swipe input problems