Fix require indexing