fix warning when running from CLI