Fix spectrum color calculation.