Fix incorrect ordering of priority