Fixed swiping problem