index, fallback: Refactor for regenerator's breaking changes