Remove bad imports in lite structure generation event