EMI: Fix attaching/detaching actors.