Fixed one more bug in Session class.