Fixed bug whereby parent was left orphan when new grandpa was created in
certain instances.