Bug correction in gesture