Dev/issue 6596 aip restore v3

Wrong variable name? This is shadowing the previous definition of `new_backlog`.