Fix backlog allocation code