fix crossbrowsing issue