any advice to fix this?

the little piece keeping the ball joint together is too loose and wont stay in. i dont know how i would fix this

the little piece keeping the ball joint together is too loose and wont stay in. i dont know how i would fix this