fixed session problems.