fixed session end