fixed issue with session