fixed session issues