RobotStudio event

Simulation freezing when using "check for closest object"-smart component.

Currently having issues with the "check for closest object"-smart component. The simulation runs fine and smootly except for when the smart-component runs. The simuation-time freezes completely, but starts running smootly again after checking for the closest object. This problem just started out of nowhere, it have been working perfectly before. Any one know a solution for this?