Fix change of credentials after context is already setup.