Fixed a bug in the retools queue.