Whirlpool spin out of control

I replace the Spin gear in the gearcase and also agite dogs, works fine but when in spin cycle, the whole machine spin out of control. When I shake the machine it does not move, thats good right? Also lift the back of the machine and hear clicking noise. What should I do? Thanks in advance

I forgot to menton the spin gear came with a pinon but I did not replace that would that cause this problem?

thanks, it was air in the bottle, i just kept rotating the bottle till i got all the air out. works fine now. thanks fred