fix references to document (add @ prefix)