fixed page layout bug introduced with commit f9a055a08