fix rebuild file