fix session file write bug
Merge pull request #54 from slene/master

fix session file write bug