fix layout bug on each page