Fixed scheduler referencing wrong array.