minor fix to take care of the browser mode