Queue deletion bug fix

#474