fix bug to allow multiple queued jobs