Initializing debounce threshold. Fixes possible crash.

- Attempt at fixing occassional crash ocurring when initializing the debounce timer