No fit icon, no instantiation and no endless loop.
Pass appropriate flags to ScanWindow constructor.
Prevent endless import.