small crossbrowser fixes