Attempted fix for no files to scan problem