Fix position of pages