fix three_match