fixed bug when d3params isn't fully initialized