parent() fix

As in NicNLD's @27e1fb6