debounce logic fix