Fixed check for fixnum of color indices.