Fixed issue where parsedUrl was compromised after clearing the fields.