fix insert unsolved not before tail

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