Bug fix: some effects corrupted after removing targets