Fix a bug about contamination by undefined symbol