Ensure the type of id is maintained when publishing changes.