Input boolean not keeping status after restart

Hi,

I set an automation to turn off an input boolean after a restart but when HA starts it changes to previously status.

image

The input boolean was made via UI so no initial value was set.

Any ideas of what is wrong?