Fix issue with assigning ids to sigdefs.