Avoid mutating the dict rendering html

It could be used somewhere else in the code leading to a sort of 'spooky action at a distance'.