Fixed a few bugs for GetCurChar