Use correct class for refClass2 objects