fix some browser compatibility issue