Fix error assigning order to results