fix charID type bug