Fixed firefox d3js difference.