Fixing a bug with the salting