Fixed lightbox issue where can't load next page unless you open it in a new tab