changed session so that objects aren't expired on commit