fix crossbrowser issue