fix document clone