Made the matches Remove invalid ones.