bug fix: correct the use of salt