fixing issue where jobs were running constantly