fix bugs in kankore_footer

Signed-off-by: tengattack <tengattack@foxmail.com>