fix tpt.selectedl/r/a, but it returns the string identifier now instead of an id