Fixing swipe callback