fix issue updating order counts