bug fix in linkdocid type