This is doubly true when the person who installed the original box had no idea what he was doing in the first place. (and he has passed, so I can’t kick him in the ass)
It is now safe (I am amazed that thing didn’t burn the whole range down) if not to Code.
It will be to code in a day or two. And the power is back on in almost every place in the range.