fixing tap bug