I only have 10 colors thus I was out of range when bigger than last
value of _intervals