fix TangoException check