Fixing array index.