Fix a undefined exception