couple of small cross-browser fixes