Fixed bad variable reference within onDayOfWeek().