fix some bugs and bump version