Fixed logic problem in script; missing today