Fixed session creation bug.