small fix, was not testing for the url properly