Time based apple script

I am trying to get dark mode toggle on my own schedule. I set a time based apple script but for some reason it runs itself one more time in one minute and the dark mode becomes light again. What may be the problem?