Quickly fixed some bugs.