Bugfix with not logged users
Bugfix while reading from session