fixed sessions issue