In 1942, a new field commander was needed in the Middle East. Auchinleck was acting as both the commander-in-chief Middle East Command and commander Eighth Army. He had fixed the Allied position at the First Battle of El Alamein, but after a visit in August 1942, the Prime Minister, Winston Churchill, replaced him as C-in-C with Alexander and William Gott as commander of the Eighth Army in the Western Desert. After Gott was killed flying back to Cairo Churchill was persuaded by Brooke, who by this time was Chief of the Imperial General Staff to appoint Montgomery, who had only just been nominated to replace Alexander as commander of the British ground forces for Operation Torch.