Fixed some bad bugs in character set