Update the return value of insert doc