Fix upgrade function
Update readme
Release v1.2.2