fix _gatherRefs failure to recurse