#330 fixed flying nodes issue realted to depth calculations by d3