fix some bugs

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