fix a bug in session parse.

Signed-off-by: Daogang Tang <daogangtang@gmail.com>