Fixed a bug with the priority sorting.