The latrines were built properly at Andersonville. The problem was everything was overwhelmed by numbers.
As the prisoners got sick they just went wherever they were.