prevent timeouts less than 0

might take a long time otherwise