Tried to fix the d3 error. It's no long throwing 1000s of errors just one everytime the root is clicked