Fix char invalid