Fixed 2 null reference errors due to array indices being decimal