fixed color compare math