prevent error messages if there are no parents, fixes #3