A contingent of government officials came to Rimanov to search the city for a suitable storage warehouse for the army's food and supplies. After combing the city, the only place they came up with was the local shul. When the heads of the Kehilla heard, they ran to Rav Mendele of Rimanov to ask him what to do.
One person jumped up and said that as soon as the officials find out that the roof leaks and all their supplies will be ruined, they will not use our shul as a storehouse. Everyone agreed and seemed satisfied with the plan. However, Rav Mendele heard this and said that they are sorely mistaken. “In fact, it is because of the leaky roof that this g’zeira befell us,” the Rav said, “If we don't take care of our shul and don’t treat it with honor, allowing the roof to leak, what do you expect of the non-Jews? Go fix the roof right away and everything will be okay.”
They did as they were instructed, and never heard from the officials again.