fixed generate_cdx.sh