Fixed issue with session