fixed bug in hash salt