Fixed an overflow bug with the client timeout