If you did not replace the little red connector with the 2 wires that go to the underhood fusebox, you may want to check it for corrosion and see if it is part of the problem like this picture:
<a href="
https://ibb.co/gpPdcH"><img src="
https://image.ibb.co/jnsmWc/corrosion.jpg" alt="corrosion" border="0"></a>
That is not a Pathfinder, but the Pathy is similar. The wires can be removed from the connector - just push down on the tab on top of the wire, and pull it out of the connector. In my case, the wires would not pull out - they were corroded in place. When I replaced the connector several electrical issues went away.