I think this has to do with how aiming is carried out. The pivot point of the player is the head, which looks at the cursor. The gun is offset by like 20 pixels. So depending on your direction of aiming, the bullets fall outside of the cursor. I do not have an idea on how to fix this other than by moving the pivot point to the shoulder, but this looks unnatural.