minor fix for url parsing