[daemon-fix][daemon-dev] Fixed crashing when name is primary owned again