Fix raycast issue