Fix bugs

v1.7.1
Update version number