Fix bug: self.outputQueue should be double