bug fix in script to make old min bias sample