Fixed url parsing bug