fix url resolver bug