Fix changed flag update for embed/unembed actions