fixng the debounce