Upgrade rules fix.