Baby eczema getting worse!

My doctor put me on a dairy/sugar free diet and my babies eczema got even worse. Now it has spread to his body. She says it’s food related but I’ve stopped all dairy and sugar eating so how come it has gotten so much worse? Please help us, I’m going crazy and my baby boy is so unhappy right now! He’s 4 months.