fix cross browser console issue