Fix bug where scheduler not using correct day in some cases