Fix palette-highlight bug