fix related docs insertion