small code fix in url parsing