Correct insertion of related work id value