Fix typo in openSession

Fixes problem with permissions
Merge pull request #41 from jparyani/typo-openSession-permissions

Fix typo in openSession