Good catch. The problem of passing the parent is that a parent might not exist or have other children that we don't want to rebase on this template. I guess we need to make an exception for the node itself.