fix cookie repeat

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