fix skipoptionalchar