Fixed use of the wrong index name.

I added a new bug when resolving permissions issues on the user edit page, so I've fixed that now.