fix url method