Fixed bug with invalid timeout value.