fix problem with pages