Fix component.def removing invalid entry