Fix call to d3.max