Updated process loading from SP to correct the tree structure.