fixed internal error if no url passed as parameter