Fixes build indexs files