fix require in index