Fix a bug in updating default spec.