bugfix in url parsing