Fix undefined error.

Fix undefined errors.