Modeling of ray sensors

I designed a ray sensor, but it seems to have some problems. Every time I restart Visual Components I have to reset the Frame position of that sensor for it to work. Does anyone have any idea what is causing this?
20240121125517