fixed #49 cursor was not visible when using textselection plugin