Fixed a mistake creating session in browser