Added class reference error message