bugfix in queue detector