fix lightbox bug