fix stupid bug with upgrade_bz