Fix the match script