Remove ref to class that does not exist