Fixed session by reference problem.