Fixed reference undefined error.