Fixes session permissions error