Fixed a bug in a gesture recognizer.