You could also try a ground loop isolator but that is just a band aid fix. You probably have a bad ground. My boat had this when I first bought it and had to change the point where the batts were grounded.