fix some bugs

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