fix bug of browser warning