fix bugs with pageset