fix bug of session