Improve cross-browser behavior