Fixes:
 - Fixes error in import script when running with --cron parameter