fix improper timeout clearing