Fix browser compatibility issue