Workaround for duplicate records in insert actions.