fix the safari issue