fix some bugs found in testing Signed-off-by: ComixHe <heyuming@deepin.org>
Signed-off-by: ComixHe <heyuming@deepin.org>