Fixing issue where the first gesture that is a tap would cause an error sometimes.