Fixed empty output when no tag is resolved