Fix output of empty pages