fixes the store "tree"