Minor bug fix for payload sorting.