fix bug in gestures;