Fixed loading orders query.