Fix undefined error.