Fixed minor errors in debounce.