fixed priorityQ error