Changing screen resolution throws exception
IndexOutOfRangeException: Index was outside the bounds of the array.
at VideoSettingsController.ChangeResolution () [0x00011] in <ceb68d4479314ef590f8e09f28646719>:0
at UnityEngine.Events.InvokableCall.Invoke () [0x00010] in <795a329dfc2e4def89483a5932b157d3>:0
at UnityEngine.Events.UnityEvent`1[T0].Invoke (T0 arg0) [0x00049] in <795a329dfc2e4def89483a5932b157d3>:0
at UnityEngine.UI.Toggle.Set (System.Boolean value, System.Boolean sendCallback) [0x0007a] in <2f565742493546d3a9e187c66b7151e8>:0
at UnityEngine.UI.Toggle.set_isOn (System.Boolean value) [0x00000] in <2f565742493546d3a9e187c66b7151e8>:0
at VideoSettingsController.Start () [0x00092] in <ceb68d4479314ef590f8e09f28646719>:0