repair code loading