Fixed one bug, where after adding the root, it went and added the data again