fix ldmatrix hapfreqs