Small cross-browser fixes