Fixed segfault in daughter matching