fixed charnum for invalid name of strct type