fixed bug in MatchPattern object