Trace all ac wires down load and grid, and label each end L1 or L2. If any are crossed you will have big problems. If you don’t understand you can have an electrician go over it. You could also turn off all breakers and do a continuity test between L1 and L2. You should have no continuity...