fix: cross-browser support issues