Fix bug if d3 is already loaded