fix the default argument whose enumerator value is a reference