use real class instance when collection is missing _ref field