smarty subtree fix