fix url keyerror