Fix for cross-browser support.