Fixed crash on start up.

Fixed forgetting that array.Length does not begin at 0.