fix endText value for switchElement method