Fix output of forward references.