fixing the gesture