fixed request and session bug