Fixed two errors related to the reformating of treenode.location.