corrected a stupid mistake related to proceesed queue