fix to translate/transform bug to d3 map code