fix win and darwin match problem