fix character class definition