Fixing array index bug.