timeout timer logic fix