Bugfix: assign session values, fix variable name