BUG: Fix indexing error.