Fixed typo that cause undefined error.