revert command fixed with correct code (last code existing, not new)