Fixed related documents issue.