fixes bug in TapEvent