Fixed definition of reducePriority.