fix custom char bug