fix bugs.

fix bugs.