Corrected class reference in public page and library function bugs