fixed bug with multi instance protection and cron