fixed char_type attribute assignment