fixed upgrade process