Fixed minor indexing error in last commit