Fixed the issue with swiping