fixed ajax error setup for cron handling