fix syntax error in match