fixed upgrade task