Fix slight bug in debounce