Fix intersect_ray_sphere funtion