Fixed minor indexing bug.