fix bug with no url set