Fixes bug with session creation. FOund by @colbyaley that sweetheart.