Most of the temple quarter was firebombed to ashes in 1945 , but by 1958 the people of the area had raised enough money to rebuild Sensoji and all of the important structures around it .
The building was in a poor state for 13 years , till the people had enough money to rebuild it .