Fixed issues in cron feature