Fixed Priority algorithm bug.