fixed endhihlight error