Incorrect array keys in cron