Attempting to fix lightbox issue; works for first 2-4 clicks