fix cross browser support