Debounce does not work if it is being called repeatedly