fixed an index