Fix cross-browser issues.