’99 honda 300 fourtrax starts without help

I own a ’99 Honda 300 4×4 and recently had a problem starting it. Only clicks from the solenoid. Took out batttery, cleaned all contact points, charged battery, checked battery after charge w/good tester[ tests under load]. Put it back together and ‘click’ again. Put in new solenoid. Go to reconnect batt.cables. Connect one cable, go to connect the other and as soon as I touch batt.cable to terminal, starter motor engages with key in off position. Solenoid is connected properly w/ yellow wire positive, green neg. Wha happened ?