Bugfix: checked for no files returned for scan