small fix in real time plot using d3.js