fixed a bug with mean colors