Fix URL error

and remove some debugging junk