Fix environments and cron setting