fixed default creds file is null error.