BUG:fix a bug about Session