fixed issue with updating order numbers