more generic ref fixup in doc