small fix for cronjob