Fixed another array index error