Fix initial backup code generation