fix timeout on empty pages