but then , massachusetts veterans adored hooker , who was popular with his troops if not with president lincoln , who fired him as commander of the army of the potomac less than two months after chancellorsville .