updated Document.ProjectPosition and List.ReplaceItemAtIndex