Fix handling of browser