some small bug fix

Signed-off-by: designplusplus <designplusplus.mail@gmail.com>