Fix bug with salt