Added a check to eliminate actions from the option that don't exist in the target domain.