Fix pageRef getters and setters