Fix some buggy addition of new modules.