fix error when timeout