修复了几处小bug

Signed-off-by: Meathill <meathill@gmail.com>