Removes unnecessary index