Fix undefined error when dumping.