fix(index): stop infinite promise resolution