jackknife.py bug fix