Removing empty pages