remove references to un-existing classes