Fixed an issue for an EnumConstant not working right