fix problems with ids that caused module generation to hang