Fix hard timeouts with 0 length