fix browser compatibility