Sometimes rules don't get executed?

Yes. What system do you run on, a slow one like a RPi ?
Check out this workaround (should work on any systemd based Unix).