fix boolean highlight problem