Fix a weird behavior when the bar is hidden and the text uses the bar color.