buffer.x fix for colorRangeToMask