Fixed one issue in the priority queue (first iteration)