fix types and debounce check