fixed undefined typo