Fix logic for schedule rules active on day.