Bug in PriorityList

This bug slipped in in PR #6989  (authored by me)