Fix: remove potential notice of uninitialized array index