fixing some material issues with the threshold geometry