Fix missing 'key' warning when creating tags.