Fix svg bugs that appeared in Firefox.