fixed session rerouting issue