Fixed never completing debounce function