-fixed bugs

Signed-off-by: ymsquall <ymsquare@hotmail.com>