Fix formatting in UpdateDocument