fix the gesture recognizer bug.