fix compilation error in index partial