fixing browser compatibility