fix for the displaytext in the select function