fix threshold.perm in 1.3.1