fix cross-browser