Fixing credentials storage.