fixed an allele flipping bug in sumstats_to_chisq