cosmetic fixes for LDhap and LDmatrix