fix backup dead loop