typo and url is undefined