fixed pickling of session