fix empty pages