Fix backup agent crash