thinning=0 breaks sampling

we should probably just treat thinning=0 like thinning=1