[Upgrade]: Fixed strange bug in upgrade wizard for some sites