correct Doc::addATag (refs #4011)