Meas statement only works when running simulation twice

I have a simple rc-circuit entered in KiCAD (version 5.1.5-52549c5~84~ubuntu18.04.1, release build) which contains the following control-section:
.control
set controlswait
meas ac bandwidth1 when vdb(/out)=-3
meas ac bandwidth2 when vp(/out)=-45
.endc

When I run the simulation the first time I get this:
meas ac bandwidth2 when vp(/out)=-45 failed!

When I run the simulation a second time, it works:
No. of Data Rows : 161
bandwidth1 = 1.587781e-01
bandwidth2 = 1.591947e-01

Could anyone here explain me why it fails the first time?

kind regards,
Hugo

Could you please provide the eeschema file *.sch?

Dear Holger,
I figured out what caused the behaviour I mentioned: the line “set units=degrees” should have been before my phase measure statement. I had one in my control section (before a wrdata statement but after the meas-command), therefore the first time I ran the simulation the phase meas failed (because phase was still in radians).

kind regards,
Hugo