Fix class reference error