Revert "fix ddselectdocuments"

This reverts commit a161c15a6744ff44800f0b99f6c8efb1a9968c79.