Overwrite the ID of the active records when copying child records