PathFollowingComponent bug?

I have tried to do this in the constructor but it did not work:

UCrowdFollowingComponent* CFComponent = Cast< UCrowdFollowingComponent >(PathFollowingComponent);
	CFComponent->SetCrowdCollisionQueryRange(1000);
	CFComponent->SetCrowdSeparationWeight(10);
	CFComponent->SetCrowdAvoidanceQuality(ECrowdAvoidanceQuality::High);