fixed issue of highlighting text