fix getting tep_name : prevent returning empty string