make sure, color group exists and is the same
delete old invalid matches
fix issue #28