Tried to fix the issue that local variables stay colorized, even when the localization circumstances have changed.