X-spot tilt motor

I have an x-spot in which the tilt encoder has failed. The display shows that its value is 4000 and it stays there no matter what. I have already tried replacing the 3 phase board, hoping it was someting wrong with it. The motor functions fine, but when it goes to tilt, the head goes flying down and then begins to try tilting more. The only way i have figured out how to get that motor out is to drill out the pop rivets which i find to be rediculous. Also can the encoder me replaced seprately from the motor?
Related