fixing double tap bug