fix problem with color compare