Corrected potential for out of bounds array which could lead to incorrect rendering