Fixes scheduling cron jobs twice