improve clearemptydoublepage