fixed a bug preventing the scan when project is loaded as a module in another project