fixed session undefined