fixed functions match-not-existed and tree-match