Fix backup generation