debouncing bugfix