fixed class type default value to match type