Fix for sub-to-doc references