fix: cannot read history size.

Signed-off-by: liuyanghejerry <liuyanghejerry@126.com>