Fixed an error with element tapping