Fix some bugs, update version number.