Fixed a possible error in the scheduled job loop.