Fixed an ordering issue in bulk download