修复一系列的bug

Signed-off-by: hancong03 <121371790@qq.com>