fixed char print bug