Fixed bug with indexing multiple subjects.