Use correct element index