_referenceCache is not a function