url parsing bug fix