How can I repair fortifications ?

City walls of Paris are 100% on campaign map, but each time I get assaulted they're just a pile of rubble, exactly the way I left them after taking the city.

Any other way than demolish / rebuild ? Will it at least work this way ?

I've searched the threads but couldn't find anything related to this.