fixed silly undefined variable $url when printing.