Corrected normalizeArgs