修正若干BUG

Signed-off-by: WseMad <mgtx460@163.com>