Fix:some bugs.