fix url parsing problem