fixed not set parent id in Document