Continuity mistake: In the flashback to the prison, Hershel says "we've been here two months." However, when they show Judith she is shown to be the same age she was when the prison fell (around 9-10 months) If they had only been there two months, and Lori delivered within the first week of being there, the baby should not be very old.
Continuity mistake: Right at the end of this episode when there is another flashback to the prison, the baby is seen many times. Judith is asleep, then the camera angle changes and she is awake, it moves back to another angle and she is sleeping again. This is repeated several times.
Answer: The walkers could have knocked them down more than once. There may have been another wave that knocked down the fence earlier and they're going to put it up again soon.
Captain Defenestrator