fixed session problems