fix for parent() methods.

the parent methods should use matches() instead of search().