fix bug in ranker pqueue optimization