fixed url parsing