BUGFIX $url is undefined variable