fixed an accidental error that prevented data from being read from a session correctly