fix sync mode on_chain

Signed-off-by: xiehuc <xiehuc@gmail.com>