case of repo change to nil