fix wrong queue comparator