fix bug %text% not set if nothing is selected