fix for firefox/safari