repair def IDs