Refine build index