fixed didntUpgrade and didntDowngrade