Bug fix: thinning instance detection.