fix bool and enum type default value bug