more cross-browser fixes