Flashbacks reveal the extent of Maggie's harrowing experience at a Ugandan orphanage, while Jim gets into trouble with Mac.