fix primary-key endhighlight bug