MXR-134 fix template element definition for outside