Fixed debounce bug