Fixed bug on path_matching:

- Mis-using of relational operator for lists, it needs len calling.