fix svg translate difference between firefox and chrome