Weapon hand socket location problems

How would I fix weapons not fitting correctly in my hands? It would need to be weapon specific as well.
Here’s an image: