Fix a bug with no credentials provided.