fix lightbox crash