fix url resolution