fixed some bugs

Signed-off-by: shujingke <rainkekekeke@gmail.com>