Hotfix for JSON sessions