fix wrong downgrading