In recognition of his contribution to the battles at Saratoga, General Arnold had his seniority restored (he had lost it after being passed over for promotion earlier in 1777). However, Arnold's leg wound left him bedridden for five months. Later, while still unfit for field service but serving as military governor of Philadelphia, Arnold entered into treasonous correspondence with the British. He received command of the fort at West Point and plotted to hand it over to the British, only to flee into the British lines when the capture of his contact John Andre led to the exposure of the plot. Arnold went on to serve under William Phillips, the commander of Burgoyne's right wing, in a 1781 expedition into Virginia.