[BUGFIX] fixing error scanning option without inventory_code