Fix cross-browser issue.