projectile to crosshair problem

hello all. when firing, if my crosshair hits an obstacle or makes contact with something, the projectile moves properly. But when it hits empty space or the sky, it moves to the left. how can i fix this issue? thanks for helps.
this is my code for shoot.

simple sphere mesh for bullet.

i use socket for spawn point.