fix bugs.

Signed-off-by: lpgray <rayzy1991@163.com>