Use correct array index.