Fix for when importing or duplicating actors, as reported in #1