cross-browser fix