Wierd viewmodel problem

I’ve recently been trying to make a viewmodel compatible with Garry’s Mod viewmodel hands system but some odd things happen, most of the primary bones like the magazine and slider stay in the place it should be, but the primary guns body goes off elsewhere

Here is a picture to show using ManTuna’s Pistol as an example

I did the system correct from a tutorial (adding in all the $definebones and $mergebones). If you need the .qc or anything else then I can provide them if needbe