Bug fix in CreateColorMatrix