Bug fixes in LdaCgs*