Fixed an attribute error when using the url