Fix bug where only the first import made it into the import table. Can't believe this wasn't tested. Sigh.