fix a bug

when the session is not exist , it won't go 500