Bug with updating entire document after placing order is fixed by using partial update