Fixed bug where if the order of the users were re-ordered, the correct values were not returned