Bugfix secure sessions