fix for min wall thickness