Improve the compatibility in Firefox.