In December 1864, the white and black units of the Army of the James were divided into two corps. The black troops were sent to the XXV Corps; the white troops became the XXIV Corps, under the command of Edward O. Ord. The bulk of corps remained in the Petersburg trenches, but Adelbert Ames's second division took part in both Major General Butler's initial unsuccessful assault on Fort Fisher during the First Battle of Fort Fisher in December 1864 and the successful attack on the fort during the Second Battle of Fort Fisher the following January. This division was ultimately absorbed into the revived X Corps in March 1865.