Fixed Issue #648,removing the div using d3 selector.