a fix for the textselection plugin