RayCasting bug fixed.