bug fix on deadQueue