fixed the raycast