fixed some bugs

Signed-off-by: striges <sugar1987cn@gmail.com>