Fix a bug in converting Enum type to String.