fixed bugs

Signed-off-by: achaly <achaly@163.com>