Fixes small bug with debounce