fix error with tap