Fixes bad order range and counts first_orders through another scope/query