Fix a bug with running a schedule on a day