Fix the bugs

Thanks to Coverity(R)

Signed-off-by: liushuyu <liushuyu_011@163.com>