Fixed ordering and attribute errors with plain pages