Fix generation for page format