fix upgrade event