Corrected page class generation