Fix set_credentials.