fix cdx index generation