Fix bug with url.map=TRUE