fix wrong thinning