How to get NPCs to stay put while doing activities?

Yes, it’s a bug, they were working fine for a while but something broke somewhere on the road to 0.F.