Some cross browser fixes