Changes to get svg size properly on firefox.