fixed the hl-mode to be global