underline color, range logic fix