fixed error on subpages