correcting chisquare if all adj diffs are zero, closes #22