Fix hiliter not to crash when closing