fix bug for returning deep session value