fixing browser compatibility problem