fix for update order