fixed an issue with RayCast() limit comparison