Fix typo in openSession

Fixes problem with permissions