fixed salt file reading

Forgot to break out of the loop