bug fix in gChar