Array problem

I figured out this is the problem but i don't know why and how to fix it, When ever I run these two lines together they give me false reading, when ever I run one of them no false reading. Why???

readings[readIndex] = volume;  
 readings2[readIndex2] = sht1x.readTemperatureC() + 5;