handle invalid named types