Fix tap state on ios