Fixed crash in DistanceControl