fix quit segment failed

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