Fixed problem with session loading