fix p11 url parsing bug