Debounce not properly remove scheduled functions