When renaming levels all assigned materials for this level is lost. Renaming levels should also update these references and if material table is not external use self referenced level numbers internally.