fix 'page' layout bug