Fix bug for implied data type and enum value