Before you change the sending unit, remove and replace the two butt splices on the wires for the sending unit.
As BCB said, they should be within a few inches of where the sending unit mounts on the tank.
No problem, glad it worked out.