fix problems with non chrome browsers