Fixed the color averaging.