fixed canonicalize_url and why-run bugs