bugfix in color comparison