Fixed typo in timeout code