Fix bugs in dlx package.