fix mismatched <type></action>