fixed small bugs

Signed-off-by: Wang Bin <wangbin.zibo@gmail.com>