fixed some bugs

Signed-off-by: ggxx <ggxx120@gmail.com>