Fixed same bug for swipe gesture