Fixed bug in browser-mode