fix salt extraction