fix d3 bar chart animation