Fix multiple timeouts bug.