fix cross browser bug