Wrong logic for prevent_downgrade!