corrects error in fog_credentials_hash function