Fix errors of tag directive in lightboxes