Fixed a bug in the resque jobs.