Bugfix in updating session data