fix apis indexing