Fixed error on preview in xmleditor2 action