Fixed up raycast